package com.yusi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author yusi
 * @since 2022-01-11
 */
@TableName("flight_line")
@ApiModel(value = "FlightLine对象", description = "")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class FlightLine implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("航线id")
    private Integer airInforId;

    @ApiModelProperty("头等舱票价")
    private Float firstFare;

    @ApiModelProperty("商务舱票价")
    private Float businessFare;

    @ApiModelProperty("经济舱票价")
    private Float economyFare;

    @ApiModelProperty("起飞时间")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm",timezone = "Asia/Shanghai")
    private String time;

    @ApiModelProperty("是否启用")
    private Integer isenable;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("城市1")
    @TableField(exist = false)
    private String city1;

    @ApiModelProperty("机场1")
    @TableField(exist = false)
    private String airname1;

    @ApiModelProperty("城市2")
    @TableField(exist = false)
    private String city2;

    @ApiModelProperty("机场2")
    @TableField(exist = false)
    private String airname2;

    @ApiModelProperty("两地距离")
    @TableField(exist = false)
    private Double pathdis;

    @ApiModelProperty("飞机编号")
    @TableField(exist = false)
    private String airName;
}
